<template>
	<view class="content">
		<view class="avatorWrapper">
			<!-- <view class="avator">
				<image class="img" src="../../static/wode/123.jpg" mode="widthFix"></image>
			</view> -->
			<!-- {{password.zh}}
			{{password.mm}} -->
		</view>

		<view class="form">
			<view class="inputWrapper">
				<input class="input" type="text" value="" @input="messagesearch" placeholder="请输入用户名" />
			</view>
			<view class="inputWrapper">
				<input class="input" type="password" @input="messagesearch1" value="" placeholder="请输入密码" />
			</view>
			<view class="loginBtn">
				<text class="btnValue" @click="zc()">注册</text>
			</view>
			<view class="forgotBtn">
				<!-- <text>注册账号</text> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				password: {
					zh: '',
					mm: ''
				},
			}
		},
		onLoad() {

		},
		methods: {
			messagesearch: function(event) {
				console.log(event.target.value)
				this.password.zh = event.target.value
				// console.log(this.name);
			},
			messagesearch1: function(event) {
				console.log(event.target.value)
				this.password.mm = event.target.value
				// console.log(this.name);
			},
			zc() {
				uni.setStorageSync('mm', this.password);
				uni.showToast({
					title: '注册成功'
				});
				setTimeout(() => {
					uni.navigateTo({
						url: '/pages/wode/dl'
					});
				}, 1000)

				console.log(this.password)
			}
		}
	}
</script>

<style>
	.content {
		background: #377EB4;
		width: 100vw;
		height: 100vh;
	}

	.avatorWrapper {
		height: 30vh;
		width: 100vw;
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}

	.avator {
		width: 200upx;
		height: 200upx;
		overflow: hidden;
	}

	.avator .img {
		border-radius: 90px;
		width: 100%
	}

	.form {
		padding: 0 100upx;
		margin-top: 80px;
	}

	.inputWrapper {
		width: 100%;
		height: 80upx;
		background: white;
		border-radius: 20px;
		box-sizing: border-box;
		padding: 0 20px;
		margin-top: 25px;
	}

	.inputWrapper .input {
		width: 100%;
		height: 100%;
		text-align: center;
		font-size: 15px;
	}

	.loginBtn {
		width: 100%;
		height: 80upx;
		background: #77B307;
		border-radius: 50upx;
		margin-top: 50px;
		display: flex;
		justify-content: center;
		align-items: center;

	}

	.loginBtn .btnValue {
		color: white;
	}

	.forgotBtn {
		text-align: center;
		color: #EAF6F9;
		font-size: 15px;
		margin-top: 20px;
	}
</style>
